﻿//using Acme.BookStore.Authors;
using Acme.BookStore.Ball;
using Acme.BookStore.BallDto;
//using Acme.BookStore.Books;
using Acme.BookStore.Car;
using AutoMapper;
using Acme.BookStore.Domain.Entities;
using Acme.BookStore.Kehus;
using Acme.BookStore.Kehus.Dtos;
using Acme.BookStore.Purchase.Customergoods;
using Acme.BookStore.PurchaseDto.CustomergoodsDto;
using Acme.BookStore.PurchaseDto.Goods;
using AutoMapper;

namespace Acme.BookStore;

public class BookStoreApplicationAutoMapperProfile : Profile
{
    public BookStoreApplicationAutoMapperProfile()
    {
        CreateMap<Kehu, KehuDto>();
        CreateMap<BallModel, BallDto.BallDto>().ReverseMap();
        CreateMap<CreateUpdateBallDto, BallModel>().ReverseMap();
        CreateMap<CustomergoodsModel, CreateUpdateCustomergoodsDto>().ReverseMap();
        CreateMap<CustomergoodsDto, CustomergoodsModel>().ReverseMap();

        //CreateMap<Book, BookDto>();
        //CreateMap<CreateUpdateBookDto, Book>();

        //CreateMap<Author, AuthorDto>();

        //CreateMap<Author, AuthorLookupDto>();

        CreateMap<GoodsModel, GoodsDto>();
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        CreateMap<Vehicle, VehicleDto>().ReverseMap();
        CreateMap<CreateUpdateVehicleDto, Vehicle>().ReverseMap();

        CreateMap<ADManagement, ADManagementDto>();
        CreateMap<CreateUpdateADManagementDto, ADManagement>();

        CreateMap<Kehu, KehuDto>();

        CreateMap<Orders, OrdersDto>();
        CreateMap<CreateUpdateOrdersDto, Orders>();

        CreateMap<CreateUpdateFleetcarDto, Fleetcar>();
        CreateMap<Fleetcar, FleetcarDto>();
    }
}
